package com.itheima.service;

import com.itheima.domain.Role;
import com.itheima.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface UserService extends UserDetailsService {
    public  List<UserInfo> findAll() throws Exception;

    void addUser(UserInfo userInfo)throws Exception;

    UserInfo findById(Integer userid)throws Exception;

    List<Role> findOtherRoles(Integer userid)throws Exception;

    void addRoleToUser(Integer userId, Integer[] roleIds);
}
